﻿<%@ Control Language="C#" Inherits="System.Web.Mvc.ViewUserControl<IPagedList<JLL.China.Model.Listings>>" %>
<%@ Import Namespace="JLL.China.Web.Libraries" %>
   <form id="mainformreject" class="list_item_form" method="post">
<table border="0" width="100%" cellpadding="0" cellspacing="0" class="grid" id="product-table">
<caption></caption>
    <tr>
        <th class="table-header-check">
            <a id="toggle-all"></a>
        </th>
        <th class="table-header-repeat line-left" style="min-width: 88px !important">
            <a href="">Image</a>
        </th>
        <th class="table-header-repeat line-left" style="min-width: 158px;">
            <a href="">Listing Information</a>
        </th>
        <th class="table-header-repeat line-left" style="min-width: 165px;">
            <a href="">Admin Info</a>
        </th>
        <th style="min-width: 15px;" class="table-header-repeat line-left"><a>Option</a></th>
       
    </tr>
    
   <% foreach (var item in Model)
               {%>
            <tr>
                <td valign="middle"  align="center">
                    <input name="selected" type="checkbox" value="<%=item.ID%>" />
                </td>
                <td style="padding:8px">
                <b>Listing For :</b> <%=item.PropertyFor%><br />
                    <a class="thumbnail">
                        <img src="<%=Url.Content("~/")%>Ajax/ShowImage/<%=item.ID%>" /></a>
                        <br />
                      <b>Listing ID:  </b> <%=item.ID %>
                </td> 
                <td valign="top">
                <ul class="location-listing">
                <li><b>Project name:</b> <%=item.ProjectName%></li>
                <li><b>City:</b> <%=item.City%></li>
                <li><b>Location:</b><%=item.Location%></li>
                <% if (item.SubArea != null)
                   { %>
                <li><b>Subarea:</b><%=item.SubArea%></li>
                <%} %>
                 
                </ul>
                                       
                </td>
               
                <td valign="top"> 
                   <ul class="location-listing">
                   <li><b>Property Type:</b> <%=item.PropertyTypeName%></li>
                    <li><b>Asking Price:</b>  <%= String.Format("{0:#,##0}", item.AskingPriceLocal)%> RMB</li> 
                    <li><b>Area: </b> <%=String.Format("{0:#,##0}", item.FloorArea_SM)%> sqm</li> 
                    <li><b>Creat by:</b> Public</li>
                    <li><b>Create date:</b><%=item.CreateDate.Value.ToShortDateString()%> <%//=item.CreateDate.Value.ToShortTimeString()%></li> 
                    <li><b>Listing date:</b> <%=item.CreateDate.Value.ToShortDateString()%> <%//=tem.CreateDate.Value.ToShortTimeString()%> </li>    
                    </ul>  
                
                  
                </td>
                <td style="text-align:center">
<a href="#" class="post-approve" title="Approve">
<img id="detail-icon-img" src="<%=Url.Content("~/Content/images/")%>Star_full.png" style="width: 28px;"></a>
<br/><br/>
<% if (item.StatusFID == 4)
   {
 %>
<a href="#" class="post-rejected" title="Rejected">
<img id="detail-icon-img" src="<%=Url.Content("~/Content/images/")%>Close.png" style="width: 24px;"></a>
<br/><br/>
<%} %>
<a href="#" class="post-edit" title="Edit">
<img id="detail-icon-img" src="<%=Url.Content("~/Content/images/")%>File_edit.png"  style="width: 25px; margin-left: 4px;"></a>
<br /><br/>
<a href="<%=JLL.China.Web.Libraries.HelperUtility.PortalUrl()%>"listing/detail/sqm/2" class="preview" data-fancybox-type="iframe" title="Preview">
<img alt="search icon" src="<%=Url.Content("~/Content/images/")%>Search.png"  style="width: 28px;">
</a>
</td>
                
            </tr>
            <%} %>
</table>
</form>